﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Cloud.ImportDb.WinApp
{
    public partial class Form1 : Form
    {
        string appPath = Application.StartupPath.Trim('\\');
        #region 载入初始值

        #endregion


        public Form1()
        {
            //载入初始值
            
            InitializeComponent();
            var tblist = this.Controls.Cast<Control>().Where(c=>(c is TextBox && ((TextBox)c).Multiline));

            //支持全选快捷键
            foreach (var tb in tblist)
            {
                tb.KeyDown += (sender, e) =>
                {
                    if (e.Control & e.KeyCode == Keys.A)
                    {
                        (sender as TextBox).SelectAll();
                    }
                };
            }
        }


        private void btn_Start_Click(object sender, EventArgs e)
        {

        }

        private void btn_Stop_Click(object sender, EventArgs e)
        {

        }

    }
}
